package service.serviceImpl;

import dao.CollegeDao;
import dao.Impl.CollegeDaoImpl;
import po.College;
import service.CollegeService;

import java.util.List;

public class CollegeServiceImpl implements CollegeService {
  private CollegeDao dao=new CollegeDaoImpl();
    @Override
    public List<College> queryAllCollege() {
        List<College> colleges = dao.queryAllCollege();
        return  colleges;
    }

    @Override
    public void delete(College college) {
        dao.delete(college);
    }

    @Override
    public void insert(College college) {
        dao.insert(college);
    }

    @Override
    public void update(College college) {
        dao.update(college);
    }

    @Override
    public College queryOne(Integer id) {
        College college = dao.queryOne(id);
        return  college;
    }
}
